import * as React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import PageOne from './PageOne';
import {TabContainer} from './TabContainer';
import {ScreenID} from '../variables';
import Login from './authLogin/login';

const Outer = createNativeStackNavigator();

export default function ContentContainer() {
  return (
    <NavigationContainer>
      <Outer.Navigator>
        <Outer.Screen
          name={ScreenID.Login}
          options={{headerShown: false}}
          component={Login}
        />
        <Outer.Screen
          options={{headerShown: false}}
          name={ScreenID.TabPage}
          component={TabContainer}
        />
        <Outer.Screen
          options={{headerShown: false, header: undefined, title: undefined}}
          name={ScreenID.Welcome}
          component={PageOne}
        />
      </Outer.Navigator>
    </NavigationContainer>
  );
}
